package com.fhz.hilttest

import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ActivityComponent

/**
 * 时间:2023/3/29
 * @author Mr.Feng
 * 简述: TODO
 */
@InstallIn(ActivityComponent::class)
@Module
object UserMoudle {

    @Provides
    @XiaoUser
    fun providexiaoUser(): User {
        return User("小明")
    }

    @Provides
    @DaUser
    fun provideUser(): User {
        return User("大明")
    }
}